package com.gulimall.order.dao;

import com.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 订单
 * 
 * @author Rookie-886
 * @email ${email}
 * @date 2021-03-14 22:36:08
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    @Update("update oms_order set status = #{orderStatus},pay_type = #{payType} where order_sn = #{orderSn}")
    int updateOrderStatus(@Param("orderSn") String orderSn, @Param("orderStatus") Integer orderStatus, @Param("payType") Integer payType);
}
